package com.ywy.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ywy.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ywy.vo.CommentVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 博客评论 Mapper 接口
 * </p>
 *
 * @author ywy
 * @since 2021-12-24
 */
public interface CommentMapper extends BaseMapper<Comment> {
    /**
     * 分页查询博客评论信息
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<CommentVo> listByPage(Page page, @Param(Constants.WRAPPER) QueryWrapper<Comment> queryWrapper);
}
